package cn.johnyu.order.client;

import cn.johnyu.order.config.CustomLoadBalancerConfiguration;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "product-svc")
@LoadBalancerClient(value = "product-svc",configuration = CustomLoadBalancerConfiguration.class)
public interface ProductClient {
    @GetMapping("/info")
    String info();
}

